Skip to content

feat(python): export hosted trading errors - #1988

Closed
aislopking024 wants to merge 1 commit into
pmxt-dev:mainfrom
aislopking024:agent/export-hosted-errors
Closed

feat(python): export hosted trading errors#1988
aislopking024 wants to merge 1 commit into
pmxt-dev:mainfrom
aislopking024:agent/export-hosted-errors

Conversation

@aislopking024

Copy link
Copy Markdown

Summary

  • export all ten hosted trading error classes from the Python package root
  • add regression coverage for direct imports, __all__, and class-object identity
  • preserve the existing implementations and lazy pmxt.errors exports

Why

Python users currently need a private pmxt._hosted_errors import to catch specific hosted trading failures. This gives them the same stable package-root API available in the TypeScript SDK.

Closes #1329.

Validation

  • python -m pytest tests/test_public_exports.py tests/test_hosted_errors.py tests/test_hosted_error_mapping.py — 68 passed
  • git diff --check

AI assistance disclosure

This contribution was prepared with OpenAI Codex (GPT-5.6) and received a separate Sol/High review. The final diff and tests were independently verified before publication.

@aislopking024 aislopking024 closed this by deleting the head repository Aug 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SDK drift: Hosted error classes not exported at package level in Python; TypeScript exports all of hosted-errors.ts

1 participant